package util

import (
	"fmt"
	"strings"
)

func Str2A() {
	fmt.Println("iptables")
}

func Ip2Path(str string) string {
	return strings.Join(strings.Split(str, "."), "-")
}

func Path2Ip(str string) string {
	return strings.Join(strings.Split(str, "-"), ".")
}
